package edu.taru.dao;

import edu.taru.pojo.User;
import util.SqlHelper;

public class UpdatePasswordDaoImpl {
	public void update(User user,String newPassword,String oldPassword) {
		String sql = "update user set password=? where username=? and password=?";
		int i = SqlHelper.update(sql,newPassword,user.getUsername(),oldPassword);
		
	}

	
}
